package com.ruoyi.recommend.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品推荐对象 wdm_goods_recommend
 * 
 * @author ruoyi
 * @date 2025-09-15
 */
public class GoodsRecommend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 推荐ID（主键） */
    private Long recommendId;

    /** 商品ID（外键） */
    @Excel(name = "商品ID", readConverterExp = "外=键")
    private Long goodsId;

    /** 推荐类型：1=热销榜 2=新品榜 3=节日特荐 4=猜你喜欢 */
    @Excel(name = "推荐类型：1=热销榜 2=新品榜 3=节日特荐 4=猜你喜欢")
    private String recommendType;

    /** 排序序号（小号靠前） */
    @Excel(name = "排序序号", readConverterExp = "小=号靠前")
    private Long sortOrder;

    /** 推荐开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推荐开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 推荐结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推荐结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 是否热销榜 */
    @Excel(name = "是否热销榜")
    private String isHot;

    /** 是否新品榜 */
    @Excel(name = "是否新品榜")
    private String isNew;

    /** 状态（0=正常, 1=禁用） */
    @Excel(name = "状态", readConverterExp = "0==正常,,1==禁用")
    private String status;

    /** 删除标志（0=未删除, 1=删除） */
    private String delFlag;

    public void setRecommendId(Long recommendId) 
    {
        this.recommendId = recommendId;
    }

    public Long getRecommendId() 
    {
        return recommendId;
    }

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setRecommendType(String recommendType) 
    {
        this.recommendType = recommendType;
    }

    public String getRecommendType() 
    {
        return recommendType;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setIsHot(String isHot) 
    {
        this.isHot = isHot;
    }

    public String getIsHot() 
    {
        return isHot;
    }

    public void setIsNew(String isNew) 
    {
        this.isNew = isNew;
    }

    public String getIsNew() 
    {
        return isNew;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recommendId", getRecommendId())
            .append("goodsId", getGoodsId())
            .append("recommendType", getRecommendType())
            .append("sortOrder", getSortOrder())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("isHot", getIsHot())
            .append("isNew", getIsNew())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
